package tedu.study.ooday05_2;

public class FinalDemo {
    final int a = 0;

    public static void main(String[] args) {
        //a = 10;//编译错误，不能修改

        final int b = 6;
    }
}

//final修饰类
final class Hoo{}
//class Ioo extends Hoo{}//编译错误，final的类不能被继承
class Joo{}
final class Koo extends Joo{}